<template>
  <div id="">
      登录界面
      <button type="button" @click="login">登录 </button>
  </div>
</template>
<script>
export default {
  name: "",
  data: () => ({
    redirectURL:"",
    page:2

  }),
  created() {
    //do something after creating vue instance
    document.title="登录页"
    this.redirectURL=this.$route.query.redirectURL||"/"
    console.log(this.$route.query.redirectURL)
  },
  methods: {
    login() {
      sessionStorage.setItem("islogin","true")
      console.log(this.redirectURL)
      this.$router.push(this.redirectURL)
    }
  }
}
</script>
<style lang="less" scoped>
</style>
